﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;

namespace BaiTu.Common.Web.Helpers
{
    public sealed class BrowserHelper : Framework.Interfaces.ISingletonDependency
    {
        private BrowserHelper() { }

        /// <summary>
        /// 判断当前访问的浏览器是否是IE浏览器
        /// </summary>
        /// <returns></returns>
        public static bool IsIE()
        {
            return HttpContext.Current.Request.ServerVariables["HTTP_USER_AGENT"].IndexOf("MSIE") > -1;
        }
    }
}
